﻿using ASmile.Com;
using ASmile.Com.Da;
using ASmile.Com.DictCom;
using ASmile.DBModel;
using Microsoft.AspNetCore.Mvc;

namespace ASmile.Web.ApiControllers.SysManage
{
    [Route("api/SysManage/[controller]/[action]")]
    [ApiExplorerSettings(GroupName = "SysManage")]
    public class DictComController : BaseApiCrudController<DictComBLL, Dict_Common, ArgDictSearch>
    {
        /// <summary>
        /// 获取全部字典类型
        /// </summary>
        [HttpPost]
        public ApiResultList<Dict_CommonType> GetDictTypes()
        {
            return BLLObj.GetDictTypes(string.Empty);
        }
        /// <summary>
        /// 设置排序值 
        /// </summary>
        [HttpPost]
        public ApiResult SetSortNo(ArgSetSortNo arg)
        {
            return BLLObj.SetSortNo(arg);
        }
    }
}